package com.hyg.module_health;

import android.os.Bundle;

import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.hyg.lib_common.Base.BaseActivity;
import com.hyg.lib_common.constant.Constants;
import com.hyg.module_health.view.fragment.HealthFragment;

@Route(path= Constants.PATH_ACTIVITY_MODULE_HEALTH_MAIN)
public class ModuleHealthMainActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_module_first_main);
        init();
    }

    public void init(){
        FragmentManager manager=getSupportFragmentManager();
        FragmentTransaction transaction=manager.beginTransaction();
        HealthFragment fragment=new HealthFragment();
        transaction.add(R.id.ln_container, fragment);
        transaction.commit();
    }



}